package com.ruoyi.admin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.persistence.Column;

/**
 * 用户列对象 corp_company_users
 * 
 * @author Jimmy
 * @date 2022-08-04
 */
public class CorpCompanyUsers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 公司ID */
    @Excel(name = "公司ID")
    private Integer companyId;

    private CorpCompanies corpCompanies;
    private CorpCompanyDepartments departments;

    /** 部门ID */
    @Excel(name = "部门ID")
    private String dpmId;

    /** 排序 */
    @Excel(name = "排序")
    @Column(name = "`order`")
    private String order;

    /** 部门领导 */
    @Excel(name = "部门领导")
    private String isLeaderInDept;

    /** UserID */
    @Excel(name = "UserID")
    private String userid;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 职务信息 */
    @Excel(name = "职务信息")
    private String position;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobile;

    /** 性别 */
    @Excel(name = "性别")
    private Integer gender;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 座机 */
    @Excel(name = "座机")
    private String telephone;

    /** 启用状态 */
    @Excel(name = "启用状态")
    private Integer enable;

    /** 别名 */
    @Excel(name = "别名")
    private String alias;

    /** 激活状态 */
    @Excel(name = "激活状态")
    private Integer status;

    /** 扩展属性 */
    @Excel(name = "扩展属性")
    private String extattr;

    /** 二维码 */
    @Excel(name = "二维码")
    private String qrCode;

    /** 对外职务 */
    @Excel(name = "对外职务")
    private String externalPosition;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 对外属性 */
    @Excel(name = "对外属性")
    private String externalProfile;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private Integer sources;

    /** 账号关联 */
    @Excel(name = "账号关联")
    private Integer assId;

    /** 用户状态 */
    @Excel(name = "用户状态")
    private Integer woStatus;

    /** OpenId */
    @Excel(name = "OpenId")
    private String openid;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private String employeeId;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCompanyId(Integer companyId) 
    {
        this.companyId = companyId;
    }

    public Integer getCompanyId() 
    {
        return companyId;
    }
    public void setDpmId(String dpmId) 
    {
        this.dpmId = dpmId;
    }

    public String getDpmId() 
    {
        return dpmId;
    }
    public void setOrder(String order) 
    {
        this.order = order;
    }

    public String getOrder() 
    {
        return order;
    }
    public void setIsLeaderInDept(String isLeaderInDept) 
    {
        this.isLeaderInDept = isLeaderInDept;
    }

    public String getIsLeaderInDept() 
    {
        return isLeaderInDept;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }
    public void setAlias(String alias) 
    {
        this.alias = alias;
    }

    public String getAlias() 
    {
        return alias;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setExtattr(String extattr) 
    {
        this.extattr = extattr;
    }

    public String getExtattr() 
    {
        return extattr;
    }
    public void setQrCode(String qrCode) 
    {
        this.qrCode = qrCode;
    }

    public String getQrCode() 
    {
        return qrCode;
    }
    public void setExternalPosition(String externalPosition) 
    {
        this.externalPosition = externalPosition;
    }

    public String getExternalPosition() 
    {
        return externalPosition;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setExternalProfile(String externalProfile) 
    {
        this.externalProfile = externalProfile;
    }

    public String getExternalProfile() 
    {
        return externalProfile;
    }
    public void setSources(Integer sources) 
    {
        this.sources = sources;
    }

    public Integer getSources() 
    {
        return sources;
    }
    public void setAssId(Integer assId) 
    {
        this.assId = assId;
    }

    public Integer getAssId() 
    {
        return assId;
    }
    public void setWoStatus(Integer woStatus) 
    {
        this.woStatus = woStatus;
    }

    public Integer getWoStatus() 
    {
        return woStatus;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setEmployeeId(String employeeId) 
    {
        this.employeeId = employeeId;
    }

    public String getEmployeeId() 
    {
        return employeeId;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyId", getCompanyId())
            .append("dpmId", getDpmId())
            .append("order", getOrder())
            .append("isLeaderInDept", getIsLeaderInDept())
            .append("userid", getUserid())
            .append("name", getName())
            .append("password", getPassword())
            .append("position", getPosition())
            .append("mobile", getMobile())
            .append("gender", getGender())
            .append("email", getEmail())
            .append("avatar", getAvatar())
            .append("telephone", getTelephone())
            .append("enable", getEnable())
            .append("alias", getAlias())
            .append("status", getStatus())
            .append("extattr", getExtattr())
            .append("qrCode", getQrCode())
            .append("externalPosition", getExternalPosition())
            .append("address", getAddress())
            .append("externalProfile", getExternalProfile())
            .append("sources", getSources())
            .append("assId", getAssId())
            .append("woStatus", getWoStatus())
            .append("openid", getOpenid())
            .append("employeeId", getEmployeeId())
            .append("deletedAt", getDeletedAt())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }

    public CorpCompanies getCorpCompanies() {
        return corpCompanies;
    }

    public void setCorpCompanies(CorpCompanies corpCompanies) {
        this.corpCompanies = corpCompanies;
    }

    public CorpCompanyDepartments getDepartments() {
        return departments;
    }

    public void setDepartments(CorpCompanyDepartments departments) {
        this.departments = departments;
    }
}
